package com.jy.adscm.operation.hscrb.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jy.adscm.operation.hscrb.bean.ZjQualitycheckdetial;
import com.jy.adscm.operation.hscrb.mapper.mysql.ZjQualitycheckdetialMapper;
import com.jy.adscm.operation.hscrb.service.ZjQualitycheckdetialService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zyl
 * @since 2018-12-14
 */
@Service
public class ZjQualitycheckdetialServiceImpl extends ServiceImpl<ZjQualitycheckdetialMapper, ZjQualitycheckdetial> implements ZjQualitycheckdetialService {

    @Override
    public Boolean updateZjQualitycheckdetial(ZjQualitycheckdetial zjQualitycheckdetial) {
        boolean result = super.updateById(zjQualitycheckdetial);
        return result;
    }

    @Override
    public List<ZjQualitycheckdetial> selectByTid(String tid) {
        Wrapper<ZjQualitycheckdetial> wrapper =new EntityWrapper<>();
        wrapper.eq("TID",tid);
        List<ZjQualitycheckdetial> zjQualitycheckdetials = super.selectList(wrapper);
        return zjQualitycheckdetials;
    }
}
